import request from '@/utils/request'

// 查询提现申请列表
export function listSq(query) {
  return request({
    url: '/business/txsq/list',
    method: 'get',
    params: query
  })
}

// 查询提现申请详细
export function getSq(id) {
  return request({
    url: '/business/txsq/' + id,
    method: 'get'
  })
}

// 新增提现申请
export function addSq(data) {
  return request({
    url: '/business/txsq',
    method: 'post',
    data: data
  })
}

// 修改提现申请
export function updateSq(data) {
  return request({
    url: '/business/txsq',
    method: 'put',
    data: data
  })
}

// 删除提现申请
export function delSq(id) {
  return request({
    url: '/business/txsq/' + id,
    method: 'delete'
  })
}
